package com.leyou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author: wzh
 * @Date: 2019/3/29 17:55
 * @Description: 搜索微服务
 * @EnableEurekaClient只适用于Eureka作为注册中心，
 * @EnableDiscoveryClient 可以是其他注册中心。
 * Eureka 2.0闭源之后，Consul慢慢会成为主流。
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class LySearchService {

    public static void main(String[] args) {
        SpringApplication.run(LySearchService.class, args);
    }
}
